#12 ✓resolved
Rick DeNatale

Export Failure for unbounded tzinfo timezone

Reported by Rick DeNatale | June 11th, 2009 @ 01:59 PM

context "bug report from Noboyuki Tomizawa" do

before(:each) do

  @it = RiCal.Calendar do |cal|
    cal.event do |event|
      event.description = "test"
      event.dtstart = "TZID=Asia/Tokyo:20090530T123000"
      event.dtend =   "TZID=Asia/Tokyo:20090530T123001"
    end
  end
end

it "should not fail" do
  lambda {@it.export}.should_not raise_error
end

end

This raises an error because Tokyo stopped using daylight saving time in the 1950s. The TzInfoTimezone class was not handling the end of the chain of TZInfo::Timezone periods correctly

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences

Shared Ticket Bins

People watching this ticket

Pages